package com.x.redis.obj;

import java.io.Serializable;

public class User  implements Serializable {

    private long id;
    private String name;
    private static final long serialVersionUID = -7898194272883238670L;  
    public static final String OBJECT_KEY = "USER";  
    public long getId() {
        return id;
    }
    
    public void setId(long id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    public String getObjectKey() {  
        return OBJECT_KEY;  
    }  
    public String getKey() {  
        return String.valueOf(getId());  
    } 
}